class Event {
  static Integer EVENT_TYPE_POST_GROW = 0
  static Integer EVENT_TYPE_POST_EXPERIENCE = 1
  static Integer EVENT_TYPE_UPLOAD_PICTURE = 2
  static Integer EVENT_TYPE_DO_SOMETHING = 3
  static Integer EVENT_TYPE_STAGE_UPGRADE = 4

  static mapping = {
    table 'yuying_event'
    read column: 'event_read'
    content type: "text"
  }
  String title
  String content
  Integer eventType
  String param1
  String param2
  String param3
  Boolean read
  Baby baby
  Date dateCreated
  Date lastUpdated
  static constraints = {
    title(nullable:true)
    content(nullable:true)
    eventType(nullable:true)
    param1(nullable:true)
    param2(nullable:true)
    param3(nullable:true)
    read(nullable:true)    
  }
}
